package com.alumni_circle.service.gossip.impl;

import com.alumni_circle.core.service.Impl.BaseServiceImpl;
import com.alumni_circle.entity.gossip.Comments;
import com.alumni_circle.entity.gossip.VO.CommentsViewVO;
import com.alumni_circle.mapper.gossip.CommentsMapper;
import com.alumni_circle.service.gossip.ICommentsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙小虬
 * @since 2020-07-06 22:22
 */
@Service
public class CommentsServiceImpl extends BaseServiceImpl<CommentsMapper, Comments> implements ICommentsService {

    @Resource
    private CommentsMapper commentsMapper;

    @Override
    public List<CommentsViewVO> selectListComments(String gossipId,String id) {
        return commentsMapper.selectListComments(gossipId,id);
    }

    @Override
    public void updateCur(String id) {
        commentsMapper.updateCur(id);
    }
}
